\hypertarget{class_gpio_imp}{\section{Gpio\+Imp类 参考}
\label{class_gpio_imp}\index{Gpio\+Imp@{Gpio\+Imp}}
}


Gpio实例类  




{\ttfamily \#include $<$Gpio.\+h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
sint32 \hyperlink{class_gpio_imp_aefb4c2fdea4a30fd7f136a6695c455eb}{config} (sint32 dir, sint32 value=G\+P\+I\+O\+::\+L\+O\+W)
\begin{DoxyCompactList}\small\item\em 配置\+G\+P\+I\+O \end{DoxyCompactList}\item 
sint32 \hyperlink{class_gpio_imp_a4c876cc941983087c6ac9429f5de0c5d}{set\+Pin\+Value} (sint32 value)
\begin{DoxyCompactList}\small\item\em 设置\+G\+P\+I\+O Pin输出电平 \end{DoxyCompactList}\item 
sint32 \hyperlink{class_gpio_imp_a54a258bb37a30093e9630483d78595ee}{get\+Pin\+Value} ()
\begin{DoxyCompactList}\small\item\em 读取\+G\+P\+I\+O Pin输入电平 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{友元}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_gpio_imp_a9de049a3bb4813c98b88c9c3879f7876}{class {\bfseries Gpio\+Factory}}\label{class_gpio_imp_a9de049a3bb4813c98b88c9c3879f7876}

\end{DoxyCompactItemize}


\subsection{详细描述}
Gpio实例类 

\subsection{成员函数说明}
\hypertarget{class_gpio_imp_aefb4c2fdea4a30fd7f136a6695c455eb}{\index{Gpio\+Imp@{Gpio\+Imp}!config@{config}}
\index{config@{config}!Gpio\+Imp@{Gpio\+Imp}}
\subsubsection[{config}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Gpio\+Imp\+::config (
\begin{DoxyParamCaption}
\item[{sint32}]{direction, }
\item[{sint32}]{value = {\ttfamily GPIO\+:\+:LOW}}
\end{DoxyParamCaption}
)}}\label{class_gpio_imp_aefb4c2fdea4a30fd7f136a6695c455eb}


配置\+G\+P\+I\+O 


\begin{DoxyParams}{参数}
{\em direction} & G\+P\+I\+O方向\+: G\+P\+I\+O\+::\+I\+N或\+G\+P\+I\+O\+::\+O\+U\+T \\
\hline
{\em value} & G\+P\+I\+O值\+: G\+P\+I\+O\+::\+L\+O\+W或\+G\+P\+I\+O\+::\+H\+I\+G\+N \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回\+S\+T\+A\+T\+U\+S\+\_\+\+O\+K,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{class_gpio_imp_a54a258bb37a30093e9630483d78595ee}{\index{Gpio\+Imp@{Gpio\+Imp}!get\+Pin\+Value@{get\+Pin\+Value}}
\index{get\+Pin\+Value@{get\+Pin\+Value}!Gpio\+Imp@{Gpio\+Imp}}
\subsubsection[{get\+Pin\+Value}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Gpio\+Imp\+::get\+Pin\+Value (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_gpio_imp_a54a258bb37a30093e9630483d78595ee}


读取\+G\+P\+I\+O Pin输入电平 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回pin值,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{class_gpio_imp_a4c876cc941983087c6ac9429f5de0c5d}{\index{Gpio\+Imp@{Gpio\+Imp}!set\+Pin\+Value@{set\+Pin\+Value}}
\index{set\+Pin\+Value@{set\+Pin\+Value}!Gpio\+Imp@{Gpio\+Imp}}
\subsubsection[{set\+Pin\+Value}]{\setlength{\rightskip}{0pt plus 5cm}sint32 Gpio\+Imp\+::set\+Pin\+Value (
\begin{DoxyParamCaption}
\item[{sint32}]{value}
\end{DoxyParamCaption}
)}}\label{class_gpio_imp_a4c876cc941983087c6ac9429f5de0c5d}


设置\+G\+P\+I\+O Pin输出电平 


\begin{DoxyParams}{参数}
{\em value} & G\+P\+I\+O值\+: G\+P\+I\+O\+::\+L\+O\+W或\+G\+P\+I\+O\+::\+H\+I\+G\+N \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回\+S\+T\+A\+T\+U\+S\+\_\+\+O\+K,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_gpio_8h}{Gpio.\+h}\item 
libemb/src/Gpio.\+cpp\end{DoxyCompactItemize}
